package demo01;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("需要支付的金额：");
        double money = scanner.nextDouble();

        System.out.println("选择你的支付方式：1、支付宝 2、微信支付");
        int i = scanner.nextInt();
        switch (i){
            case 1:
                Pay ZFBpay = new ZFBpay();
                ZFBpay.pay(money);
                break;
            case 2:
                Pay WXpay = new WXpay();
                WXpay.pay(money);
                break;
        }
    }
}
